# Object-like interface for dictionaries
class Struct:
	def __init__(self, entries):
		# We want source dictionary to be modified on changes, though!
		self.__dict__ = entries

	def set(self, key, value):
		self.__dict__[key] = value

	def listAll(self):
		return self.__dict__

	def __repr__(self):
		return str(self.listAll())

	def __str__(self):
		return str(self.listAll())
